package com.gdqy.FCS.dao;

import java.util.List;

import com.gdqy.FCS.common.persistence.CrudDao;
import com.gdqy.FCS.common.persistence.annotation.MybatisDao;
import com.gdqy.FCS.entity.Design;

@MybatisDao
public interface DesignDao extends CrudDao<Design>{
	
	public List<Design> selectByType_code(String type_code);
	
	public List<Design> selectBySpecial_code(int special_code);
	
	public List<Design> selectByName(String name);
	
	public List<Design> selectByDesigner_id(int designer_id);
	
	public List<Design> selectByStyle_code(String style_code);
	
	public List<Design> selectByPattern_code(String pattern_code);
	
	public Design selectById(int id);
	
	public int transferSpecial(int defaultSpecial_code,int originalSpecial_code );
	
	public int selectCountByDesignerId(int designer_id);
	
	public List<Design> selectBy_type_code(String type_code);
	
	public List<Design> selectSimilarDesign(String type_code,String style_code,String pattern_code,String fabric_code,int id);
	
	public  List<Design> selectByFabric_code(String fabric_code);
	
	public List<Design> selectMatchClothingDesign(String type_code,String pattern_code,String style_code);
	
	public int selectAllCount();
	
	public List<Design> selectFab_designer(String big_code);
	
	public List<Design> selectByBig_code(String big_code);
}
